const location = (latitude, longitude) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: `https://apis.map.qq.com/ws/geocoder/v1/?location=${latitude},${longitude}&key=PGCBZ-YMSKU-4JRVG-BQRA5-7WZSF-SAFKK`,
			data: {},
			header: {
				'Content-Type': 'application/json'
			},
			success: res => {
				resolve(res)
			},
			fail: err => {
				reject(err)
			},
		})
	})
}
export default location
